Psst: Open the JavaScript Console and try to play around with these functions:
const list = new SinglyLinkedList();
list.push("Hello");
list.pop();
list.unshift("Hello");
list.shift();
list.get(1);
list.set(1, "Howdy");
list.insert(1, "Ahoy");
list.remove(1);
list.reverse();
list.toArray();
const doubleList = new DoublyLinkedList();
doubleList.push("Hello");
doubleList.pop();
doubleList.unshift("Hello");
doubleList.shift();
doubleList.get(1);
doubleList.set(1, "Howdy");
doubleList.insert(1, "Ahoy");
doubleList.remove(1);
doubleList.reverse();
doubleList.toArray();